// 对外暴露配置路由(常量路由)

export const constantRoute = [
    {
        // 主页
        path: "/",
        name: "home",
        component: () => import("@/views/index.vue"),
        children: [
            {
                path: '/home',
                redirect: '/' // 重定向到默认子路由
            },
            {
                path: '',     // 首页（默认）
                name: 'HOME',
                component: () => import("@/views/home/index.vue")
            },
            {
                path: '/ai', // AI
                name: 'AI',
                component: () => import("@/views/ai/index.vue")
            }
        ]
    },
    {
        // 404
        path: "/404",
        name: "404",
        component: () => import("@/views/404/index.vue"),
    },
    {
        // 任意路由(若进入未知路由则跳转该路由)
        path: "/:pathMatch(.*)*",
        name: "Any",
        redirect: "/404",
    },
];
